﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GUI_Administration
{
    public partial class GUIMain : Form
    {
        private static GUIMain instance;

        public GUIMain()
        {
            InitializeComponent();
        }

        public static GUIMain Instance
        {
            get
            {
                if (instance == null)
                    instance = new GUIMain();

                return instance;
            }
        }

        private void btnBatteryManufacturer_Click(object sender, EventArgs e)
        {
            GUIBatteryManufacturer batMan = GUIBatteryManufacturer.Instance;
            batMan.Show();

            this.Hide();
        }

        private void btnBatteryModel_Click(object sender, EventArgs e)
        {
            GUIBatteryModel batModel = GUIBatteryModel.Instance;
            batModel.Show();

            this.Hide();
        }

        private void btnBatteryItem_Click(object sender, EventArgs e)
        {
            GUIBatteryItem batItem = GUIBatteryItem.Instance;
            batItem.Show();

            this.Hide();
        }

        private void btnCustomers_Click(object sender, EventArgs e)
        {
            GUICustomer cust = GUICustomer.Instance;
            cust.Show();

            this.Hide();
        }
    }
}